Close xmpp connection on logout

Fixes #58