protected void checkServiceStarted() throws ServerNotRunningYetException {
    if (!serviceStarted) {
      throw new ServerNotRunningYetException("Server is not running yet");
    }
  }
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