Move sideways and further away from the threat.
Real encounters are not a game with points and a requirement to score hits.
The only requirement is to not get killed. And not absorbing lead is a good step to avoiding getting killed.
If you can fire while moving as quickly as possible, all the better.
The BGs are not typically well trained in shooting, let alone hitting a target traversing a field of aim.
Handguns are pretty lousy weapons when all is said and done. The chief advantage is to project force at a distance.
As a well trained person distance is your friend. Use it.
While a LEO has a need to capture a BG, a civilian does not. There is no reason under nearly any real world circumstance were moving away from the threat is not possible and part of the best option.