Nicer timeout handling.