Prevent Event Emitter memory leak