[fix] Emit the `end` event when the client doesn't attempt to reconnect
Merge pull request #186 from lpinca/fix/end-event

Emit the `end` event when the client doesn't attempt to reconnect