public synchronized static void close() throws Exception {
    if (metrics != null) {
      metrics.close();
      metrics = null;
    }
  }
Closes and removes static Metrics instance.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/common/metrics/common/MetricsFactory.java