Improve connection/disconnection API for xmppServices