Do not repeat failed queries when in transaction