xmpp-ftw: Adding a try-catch block for logout