catch xmpp emitted error