In the event that the process is still alive after the user should optionally be able to specify that they want a shutdown that will proceed no matter what. In linux, this might be something like
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
And in OSX/Windows a syscall that will force a panic/bluescreen.