xmppClient is directly available
since lib clients can provide handler, let them handle the error, give them a reference to socket as well