save session on window close, not app quit

otherwise we would overwrite a session as soon as a new window pops up
So the global menubar mode is sessions-less.