private void disconnect() {
    server = null;
    if (jmxc != null) {
      try {
        jmxc.close();
      } catch (IOException ignored) {
        // ignore
      }
    }
    jmxc = null;
  }
Disconnects from the JMX agent in the local process.
geode-core/src/main/java/org/apache/geode/internal/process/MBeanProcessController.java