Ask user to confirm before rebooting
On the reboot prompt, ask user if they are sure they want to reboot. Some users don't see the window pop up and hit enter and reboot by mistake without a chance to close their work.
Or use the Space key.
I agree and upvote on this.
I was in a meeting yesterday and after saying no to the reboot 3 times it just went and rebooted me, in the middle of working on something... Really not good.
Blair R commented
The prompt to reboot should not have buttons that can accidentally be selected while typing. I've lost work and a WebEx session was ended while my laptop restarted in the middle of a work day. There was nothing I could do as I watched the system restart.