xmpp: automatic reconnect on IO error