Catch timeout exception for urlopen. #2143