Handle PG::Error in the state_updater