Chrome avoids this, and if I try typing close() in the inspector I get a message "Scripts may close only the windows that were opened by it." which sounds like a good security feature so someone's scripts don't go closing my tabs and disappearing my back-button/history with it!
Of course I can CTRL-SHIFT-T to open the recently destroyed tab. Is this some kind of bug or does this serve a purpose?