Interrupt the request, clean up after the tab.
That's all. The second option is garbage collector. Not sure why the website is entitled to execute any code when I decided to close it.