Here are some great ways to shutdown or reboot. You decide which way is the best for you.
a) Shutting Down Accidentally
This method is to be used if you accidentally are shutting down and want to stop the procedure all together. It's going to require you to act quickly. So do so very fast. All you have to do is click on the Clock on the lower right hand side of your computer and change the date to a previous date and say ok. Windows will think it's in the past and postpone the shutdown.
b) Shutdown -a
For this trick you need to create a shortcut, because it will be to fast to execute. The usual way would be to open a command prompt and type this command but that will not be quick enough. So if you can't do the first item on clicking the clock this is your alternative.
c) Shutdown Event Tracker
This feature is from Windows Server but it can be found in the group policy and all that has to be done is activated. It will be an extra click but it's worth it.
d) ShutDown Guard
This is the last resort to guard against a shutdown. This utility can easily be armed and disarmed with a click from the taskbar.