If your event source has finished sending events with a particular emitter, you should free the resources the emitter is using.
emitter.close();
This method releases all resources being used by the emitter.