I found this out randomly when testing what can and what cannot be on this handler and how gracefully do browsers handle it. It seems that it's not that easy.
On OS X Mavericks 10.9.5 with Safari 7.1.3, it didn't do anything but show a beachball after hitting refresh, but I was able to close the tab without trouble or any detectable negative effect on my browser, etc.
ran on macbook pro in chrome. tab went unresponsive for a few seconds when i hit back arrow. waited a second, hit x and a couple seconds later it closed.
Edit: Chrome, osx
Edit 2: Since I never close my computer and never close my chrome, I've pinned the tab so it's smaller. You have plagued my life for ages.