Add process.exit
Fix others.