Chameleon Shutdown allows you to switch off, restart, hibernate the computer and perform other operations both immediately and when certain conditions are met (specific time, delay, idle time, CPU usage, ...
... When a program freezes,than you call the task manager CTRL+ALT+DEL , and find that frozen program then ... desktop. It's one smal / portable utility for Windows PC-s and is a small usb-stick friend :) ...