Do not fire Disconnected event if engine had been replaced.
If a new connection attempt comes in while a reconnect is in-progress,
The previous websocket connection might not be fully closed. The server
would close the old websocket connection with `reason: duplicate_identity`.
The right behavior is to ignore the leave message, instead of processing it.