Web1, Xojo 2019 R1.1 What calls the close event in App

Thank you both!

I believe I was able to solve the problem. Came down to a problem in my app/code with the license when in debug build.

The info you guys provided has been instrumental in solving this!

Thank you!
Tim

Hi guys, have been happening again -

This is the code:

Try
  Raise New OutOfBoundsException
Catch e as OutOfBoundsException
  Dim st() as string = e.stack
  // write the stack to a log for runtime use
  Logs.AddFields st
  Logs.LogFileAppend(Logs.K_Except_App_Err)
End Try

This is the what is held in the st() variable:
AxcysEmbeddedViewer.Event_Close%%o
WebApplication.Event_Stop%%ob
_Main
main

Any idea what that means?
Thanks,
Tim