Replace this with:

 	..()
	if(stat & NOPOWER)
		emergencyShutdown()