add finalize_update and rollback for upgrade code changes, otherwise logs don't end up in the right spot