wrap process (or any emitter) to record listeners