docs: protected void addShutdownHook() {
        Runtime.getRuntime().addShutdownHook(
          new Thread() {
              @Override
              public void run() {
                  LOG.info("Cleaning up ephemeral ZooKeeper state");
                  completeShutdown();
              }
          });
      }