Logout on exit.

Now that ChatExchange needs logging out on exit, do so.
Merge branch 'master' into lazers
Merge changes from ChatExchange (lazers)