Restoring the process.exit