code: private void stopAppLauncherAndServices() {
      try {
        this.applicationLauncher.stop();
      } catch (ApplicationException ae) {
        LOGGER.error("Error while stopping Gobblin Cluster application launcher", ae);
      }
  
      if (this.jobCatalog instanceof Service) {
        ((Service) this.jobCatalog).stopAsync().awaitTerminated();
      }
    }
docs: Stop the application launcher then any services that were started outside of the application launcher