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