Prevent possible EventEmitter memory leak