Proper timeout handling.