code: @Override
      public void run() {
          try {
              shutdown();
          } catch (IOException ex) {
              LOGGER.log(Level.SEVERE, "Error during shutdown", ex);
          }
      }
docs: Runs the shutdown hook.