Give exit code to process.exit() correctly