Profile Code with Web app

I have not used Profile Code much, but it certainly seems very interesting.

However, I cannot find how to get it to work on a Web application. In order for Profile to work, the app must end normally. On a desktop app that would be accomplished with a Quit command. That is not available on a Web app.

So, how can I get it to work on a Web app?

Use App.Quit.