code: public void stop() {
      Preconditions.checkState(mJvmMonitorThread != null,
          "JVM monitor thread does not start");
      mJvmMonitorThread.interrupt();
      try {
        mJvmMonitorThread.join();
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
      }
      reset();
    }
docs: Stops jvm monitor.