With regard to multiple tabs on web browsers, I have no idea how IE7 handles it, but with Firefox there's a configuration option to prompt you before closing the program when two or more tabs are open.