Cmd-W should close Tab, not Window
at least on Mac, we are used to Cmd-W command to close current window.. BUT if we are in a Tab, it closes the current Tab. if there is just one tab, then it closes the Window.
usually Shift-Cmd-W closes the multitabbed Window directly, opening a confirm dialog
(i keep closing the window and it hurts!)