fix process.exit