Fix #875 and allow closed rooms to have their tab closed.
Merge pull request #877 from cmaish/master

Allow leavecommand to run on closed rooms (allow closing the tab of closed rooms)
Merge branch 'dev'