fix fatal error when XMPP server is not available