Where is Application.CancelClose in web project?

I am trying to locate the Application.CancelClose event for a web project but it does appear to exist under the app event handler options?

The concept of “cancelclose” is foreign to a web application.

Ok so how do I tell the web project to wait for me to do stuff before it is closed?

Put it in the Close event.

The problem is that I am using the send email facility to tell me when the app has closed but I need to create a timer to stop the closing until the email has send or failed as per my other post (https://forum.xojo.com/10292-send-email-confused).

If you want to send an email on close, I suggest launching another console app to do that in App.Close.