Improve --timeout method to take into account all I/O that is going on.