A better (hopefully) method to control master shutdown.