- emit exitcode
- fix eventlistener registration
- improve match of process exit
add a nodejs test use case