code: private void removeConnectionCallbacks() {
          connection.removeSyncStanzaListener(messageListener);
          if (messageCollector != null) {
              messageCollector.cancel();
              messageCollector = null;
          }
      }
docs: Remove the connection callbacks used by this MUC Light from the
  connection.