Don't reboot if active window

I could be typing a message, then BAM restart. :(

Don't do this!