fix #1007 - make closing a tab only take you to the lobby if it's the currently active tab.
Merge pull request #1026 from JabbR/fix-closing-to-lobby

Fix closing to lobby