If you find yourself in a close quarters gun fight, it is best to not draw your weapon until there is sufficient distance between you and your attacker. This is known as entangled gun fighting and it is easy to lose your weapon. Abide by this general principle . . . break away from your attacker . . . create distance before you draw your gun.
Watch and learn from this real event. Then practice with a partner.
Always be prepared. Always carry comfortably.