code: @Override
      public void remove() {
          try {
              Runtime.getRuntime().removeShutdownHook(this);
          } catch (IllegalStateException ex) {
              LOGGER.trace("ignore as we are likely shutting down", ex);
          }
      }
docs: Removes the shutdown hook.