The shedding of innocent blood may be atoned for by the generally righteous behavior of all the people, especially their leaders. A righteous majority can deflect the judgment brought by a wicked minority.
But when that scale begins to tip the other way, watch out. If the righteous become too small a minority, a society is doomed. See Sodom.
Deuteronomy 21:8-9