I would like to restrict the user not to close the web browser but prompting a message to ask for user logout. I added a close event handler in the MainPage but it does not fire when closing the web browser. MainPage is not the first page when the app loads. Signon page loads first and when successfully logged in, MainPage shows. Am I missed something?