error is the correct stanza.type
restify.next on finally. ends client on completion
example to use chat plugin
helper.stanzaErrorHandler require a socket to operate