How to Provide an "Exit" Menu Item
60745
How do I exit a WPF application programmatically?
13840
How should I implement hook_menu()?
52511
Best way to make a shutdown hook?
5575
How can I run a command which will survive terminal close?
30341
Is there a windows app or simple scripting way to persuade windows to shutdown after a process ends?
32292
Menu select item stuck on screen after context or command menu has closed
92191
Is it a good practice to ask before exiting an application (with nothing to save)?
144102
How do I remove the shutdown confirmation menu?
145669
Where is `exit` defined?
15379
Delete Function for a Menu Driven Program
79402
Can I globally change the cmd-Q shortcut to require holding for two seconds, like the option in Chrome?
77962
"Hold Cmd-Q to Quit" from Chrome
5901
What exactly happens with the button "Leave Open" (previously "Do Not Close")?
18295
Detect left/right mouse button on menu item click?
131083
Preventing shell from exiting when set -e is turned on?
87977
How to disable command-Q for Quit?
113395
Is there a command to close a terminal window via commandline?