Mark transactions as dirty on error.