added process.exit() on uncaughtExceptions