If we get an error inside a transaction, try to do it outside of a transaction.