disconnect emits always an error
make example work again
Merge pull request #12 from node-xmpp/events-fix

Events fix