docs: @Override
    public final void onSessionClosed(Session session) {
      this.client.getConnector().removeSession(session);
      // Clear write queue to release noreply operations.
      ((AbstractSession) session).clearWriteQueue();
      MemcachedTCPSession memcachedSession = (MemcachedTCPSession) session;
      // destroy memached session
      memcachedSession.destroy();
      if (this.client.getConnector().isStarted() && memcachedSession.isAllowReconnect()) {
        this.reconnect(memcachedSession);
      }
      for (MemcachedClientStateListener listener : this.client.getStateListeners()) {
        listener.onDisconnected(this.client, session.getRemoteSocketAddress());
      }
  
    }