How do I get a clean quit/exit on a web app.

Hi, when ever I quit my Chrome or Safari web browser, I see in the terminal of my web app (running as stand alone), that I get an error:

Exception Message:
Exception Error Number: 0
An exception of class NilObjectException was not handled. The application must shut down.

so how do I handle this…

If I quit the browser, is this a session.close, window.close, app.close…to me it looks like a session.close, but what do I put in here to stop this error :slight_smile:

please help :slight_smile:

you may want to review your code.
Or try to reproduce in debugger.

I deleted all code form all my close events in session and webpage… then it does not crash…