code: protected void finishConnection() {
      this.connector.dispose();
      this.connector = null;
      for (ConnectionListener listener : this.connectionListeners) {
        listener.connectionEnded(this);
      }
      if (this.executors != null) {
        this.executors.destroy();
      }
    }
docs: Cleans-up any session-related constructs when this interface will no longer
  attempt connections to the aggregator. Notifies listener that the
  connection has ended permanently.