removed extra process.exit() added process.exit(1) for error, printed error, removed comment lines