I finally had some time to study this problem little bit more and I was able to reproduce it in testproject. It seems that TestComplete goes to OnStopTest event everytime when exception occurs, but it doesn't execute it entirely. I created simple OnStopTest event like this:
Sub GeneralEvents_OnStopTest(Sender)
Log.Message "Message 0"
Log.Message "Message 1"
Log.Message "Message 2"
Log.Message "Message 3"
Log.Message "Message 4"
Log.Message "Message 5"
Log.Message "Message 6"
Log.Message "Message 7"
Log.Message "Message 8"
Log.Message "Message 9"
End Sub
And when exception (the same UBound error) occurred TestComplete went to this event, but almost never did it post all the 10 messages to the log after the Ubound error. It usually posted 2-3 lines but after that, nothing.
Anyways, I will send the testsuite to you and you can examine this problem further more. I hope to hear some kind of resolution from you guys whether this problem is in TestComplete, in my computer (setup) or in testsuite (settings etc.) and how can I resolve this.