code: public Boot addShutdownHook() {
          Runtime.getRuntime().addShutdownHook(new Thread() {
  
              @Override
              public void run() {
                  Boot.this.stop();
              }
  
          });
  
          return this;
      }
docs: Add a JVM shutdown hook.