[5.0] Boostrap : use only one condition for handleShutdown