It makes mksnapshot die with a segmentation fault on sunos with gcc 4.5.2. This reverts commit c21c51a.
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.