I don't know if you're familiar with the ins and outs of writing computer programs, but it's actually often practical to make a program that does one thing do another instead. So in this case one obvious thing that could be done is to have a dormant-type (exact terminology TBC) tab.
Such things would have an entry on the tab bar like a normal tab, but wouldn't actually have anything loaded until you clicked. Firefox already supports this sort of thing internally, it looks like, since when you reload a session that had a bunch of open tabs, it doesn't seem to load each tab's contents until you click on it.
(Open such a thing with a particular shortcut, or by transforming an existing tab into a dormant one - obviously equivalent in terms of JS callbacks and so on to closing the window.)
Other possibilities could include multiple types of tabs, and/or alternative UIs for lists of pages you like/pages you want to look at sometime soon.
On Windows, using the built in notepad, you can block any shutdown by having an instance pen with any unsaved changes. Handy when Windows schedules a reboot and you've got your debugging session setup just right.
We've banned this account for repeatedly violating the guidelines after we've asked you to stop. This account has posted a lot of decent comments, so we'd be very glad to unban it if you email hn@ycombinator.com and we believe you'll stop breaking the guidelines.