JohnH1963 does make a few interesting points, but as I said before you have to get you and your loved ones to the safe room and sit tight. The only time you should consider leaving the safe room before help arrives is if you have no other way to keep living. If the badguys come and go and whatever that's fine. But the only time I'm coming out of the safe room is if;
1). It is the only way to stay alive (A fire etc.).
2). The Police on the other end of the line give the all clear.
Now on to JohnH1963's comments about training. I would beg to disagree with the comment about training. To train in CQB with house clearing means a dedicated tasking of training to clear a flippin' house. A few hours at the range shooting targets does not a CQB fighter make, no sirree. When I did the training we were at it for eight weeks, that's two months of running up and down stairs, climbing up to floors where the stairs had been removed, sweeping rooms, cross streeting, weapons retention, sighting cues, visual, auditory and scent cues. Detection of the enemy in the CQB environment, Communication in the CQB environment, checking doors/windows, entering a room (Dynamic, Convergence and Un-conventional), Identifier Friend or Foe methods, Shoot-no-shoot scenarios, Hardened position access, Cover/concealment determination and the use of cover/concealment offensively & defensively, Cover fire in a CQB environment... the list goes on. Of big note, it wasn't until I had actually participated in clearing an actual house during an actual confrontation that I knew I could do it. Going through a doorway/window when you figure there's a guy in that room hunkered down ready to shoot you is not easy.
The only advantage you have over any perpetrators is that you have a better idea of the floor plan of your house. The rest of the advantages stack up in the bad-guy's column pretty damned quick.
So if you have to, HAVE TO, clear a path to safety, then do it, but remember that when you clear a path it can always be intersected by enemy activity. When you are moving you are more vulnerable. Things are always dynamic, even when they appear to be remaining static.