Gracefully handle timeouts