void checkInitialized() throws PleaseHoldException, ServerNotRunningYetException,
    MasterNotRunningException, MasterStoppedException {
    checkServiceStarted();
    if (!isInitialized()) {
      throw new PleaseHoldException("Master is initializing");
    }
    if (isStopped()) {
      throw new MasterStoppedException();
    }
  }
Shutdown the cluster. Master runs a coordinated stop of all RegionServers and then itself.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java