I have never heard of any ind of trojan that could possibly keep you from closing a tab.
It must have been a bug in IE7. I have checked for the behavior which javascript "bugs"(Virus/trojan/whatever) usually has. I can't reproduce the behavior you talk about.

