Fixed a bug where events weren't being emitted after a client was destroyed