fix #1007 - make closing a tab only take you to the lobby if it's the currently active tab.