@Override
    public void shutdown() {
      super.shutdown();
      MetricsCoprocessor.removeRegistry(this.metricRegistry);
    }
Coprocessor environment extension providing access to master related services.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterCoprocessorHost.java