Issue #22081:rollback transaction before displaying error