code: public static void invoke() {
          for (final Runnable instance : instances) {
              try {
                  instance.run();
              } catch (final Throwable t) {
                  LOGGER.error(SHUTDOWN_HOOK_MARKER, "Caught exception executing shutdown hook {}", instance, t);
              }
          }
      }
docs: Invoke all ShutdownCallbackRegistry instances.