code: private void removeShutdownHook() {
          ShutdownHook hook = shutdownHookRef.get();
          if (hook != null) {
              Runtime.getRuntime().removeShutdownHook(hook);
          }
      }
docs: Removes the {@link ShutdownHook}.