You have to configure what the power button does in your control panel:
Control Panel\Hardware and Sound\Power Options\ - then click on Choose what the power buttons do.
Verify here that it is set to "shut down" not "sleep".
Also assuming this is what you mean, as your title seemed to be confused the thread itself. I am assuming you mean you press the power button, and it appears to only go to sleep.