I had a bunch of tables open in tabs and went to close the active one with CTRL+W on Windows, but it closed the connection. I would suggest that CTRL+W closes one tab at a time and maybe then the main window when no more tabs are open.
What do you think about this?