Correctly catch timeout