A ConnectionClosedException will be raised when the connection has been closed while waiting for an operation to complete