Fix dispose logic
Remove node core modules from exec stacks
Handle multiple emit calls gracefully

Also prevents pending emits from triggering after an error or redirect.

Fixes #26