See also `process.on('exit', ...)`; you can conditionally set process.exitCode in it (only if there was no other failure) if you want.