This should not be happening, are you getting any messages when the windows closes? Are you closing the main window with tabs?
If I.E. crashes it will close any instances of itself that are open. I have been getting this a lot in Windows 7, looks to be caused by Flash Player.