Upon "normal" exiting of Node (i.e. the event loop completes naturally), the "code" parameter was not being passed to the "exit" event listeners. Be consistent. Tests included.