public void cleanup(IOException e) {
      IOException ie =
        new ConnectionClosingException("Connection to " + remoteId.getAddress() + " is closing.");
      for (Call call : callsToWrite) {
        call.setException(ie);
      }
      callsToWrite.clear();
    }
Cleans the call not yet sent when we finish.
hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/BlockingRpcConnection.java