process.exit on error with non-zero exit code