fixed wrong process.exit()