If any query in a transaction fails, rollback