Set tx.finalized before changing state to validated/failed