Yes, clicking the
X is usually futile & may invoke more trouble. Also, a right-click for the function menu off a program on the task-bar & using
Close often doesn't work either.
The buttons are simply graphic interfaces that call a subroutine, which can be replaced by malware to do something else.
Best bet is
F4 which should kill the browser. That's a system level command & it hasn't failed me yet.
Thanks to all for the links. I will certainly peruse those.
Somewhat ironic is the article from The Guardian. Their Genius puzzle page has had the Java horror show for at least 2 years (since I've been accessing it).