It does not work if you type the url in chrome. To me, I assume that you are using
window.close. I suggest just making the screen black or something like that and make it so that they can then restart or use the os once again.
Also, I found a file (.txt) that I find “not necessary”