public static void stopThreads() {
    // this method fixes bug 45409
    stopping = true;
    stopProctor();
    stopWatchDog();
  }
This stops the threads that implement this service. This method is called when a Cache is
closed.
geode-core/src/main/java/org/apache/geode/SystemFailure.java