The X on the tab itself, or the X for the whole window (which can be configured to close tabs)?
Windows might kill the whole process if the X for the whole window is clicked sometimes, usually if it things the app isn't responding. The X for an individual tab shouldn't normally close more than the tab.
Were any crash dumps created matching the time this happened?