Different result with debugger and without debugger

I persorm an FT search and create doc with result set.I have on the main and all subfunctions I use:

On Error Goto ErrorHandler

.

.

.

ErrorHandler:

If not resultsetdoc is nothing then

Call OpenResultSet

end if

exit sub

That is because I want user to see the resultset even if he performs Ctrl+Break

The strange is that it opens Result set document only if I run the script through debugger.

Any idea? I tried to check if err=4005, but did’t help either.