call process.exit(0) on success