When I was a kid there were several cases where someone defended themselves in their home against a burglar or other criminal. And the home owner was sent to jail for it. The law wasmthat they were supposed to run and hide.
When they did run and hide and got chased by the crook, then killed the crook, they lost the case because they should have tried harder to run farther and hide better.
That seemed stupid to me then. Is that what all this castle doctrine and stand your ground stuff is about?