Removed inline process.exit call