Does automatic shutdown rely on some piece of software installed on the system or in the diagnostic partition? 
I ask because my computer is giving me error code #m1004 when I boot.  This error states that the computer was automatically shut down by the system beacue of heat.  But it didn't automatically shut down.