@Override
    public void run() {
      try {
        // Stop the Composite Service
        compositeService.stop();
      } catch (Throwable t) {
        LOG.info("Error stopping " + compositeService.getName(), t);
      }
    }
JVM Shutdown hook for CompositeService which will stop the given
CompositeService gracefully in case of JVM shutdown.
service/src/java/org/apache/hive/service/CompositeService.java