reconnecting to ejabberd if we lose our xmpp connection