Handle timeouts in requests to server