I believe that Texas addresses this problem by sending every homicide to a Grand Jury. I believe that if the Grand Jury decides that the homicide was justifiable (or praiseworthy) self defense, it issues “no true bill” and the case is permanently closed.
Works for me.