Fixing process.exit call on update errors