public static synchronized void shutdown() {
    if (self != null) {
      pool.shutdown();
      self = null;
    }
  }
Utility singleton class to manage all the threads.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ThreadPool.java