Fix closing to lobby

When you close a tab we always go back to the lobby.  This is silly, and should only happen when you close the currently active tab.  This is issue #1007