Do not attempt to flush when the transaction is marked for rollback