@Override
  public void stopManager() {
    lifecycleLock.lock();
    try {
      // remove hidden management regions and federatedMBeans
      if (!running) {
        return;
      }
      if (logger.isDebugEnabled()) {
        logger.debug("Stopping the Federating Manager.... ");
      }
      running = false;
    } finally {
      lifecycleLock.unlock();
    }

    stopManagingActivity();
  }
This method will be invoked whenever a member wants to be a managing node. The exception
Management exception has to be handled by the caller.
geode-core/src/main/java/org/apache/geode/management/internal/FederatingManager.java