private void removeShutdownHook() {
    if (!Boolean.getBoolean(
        org.apache.geode.distributed.internal.InternalDistributedSystem.DISABLE_SHUTDOWN_HOOK_PROPERTY)) {
      Runtime.getRuntime().removeShutdownHook(shutdownHook);
    }
  }
Adds a ShutdownHook to the Agent for cleaning up any resources
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentImpl.java