The standalone web app is running in a console window.
When i want to close the app the only thing i can do is pressing the close box of console window.
Maybe i can recognize a URL parameter to make the app close itself but sometimes the app stop responding to web requests.
The app object is missing something a keypress event to let the user drive it.
The problem is in the fact that it is an app running inside of a console. When you close the terminal, the app just gets terminated. No Quit method is sent to the app.