Move spawned process to an event emitter