Fixed bug where a SocketTimeoutException during a request would cause
requestFailed() to be called more than once.