Catch timeout and retry