code: public OnShutdown onShutdown() {
          if (lazyOnShutdown == null) {
              lazyOnShutdown = new OnShutdown();
              Runtime.getRuntime().addShutdownHook(lazyOnShutdown);
          }
          return lazyOnShutdown;
      }
docs: --