Shit happens until it's one of yours or you yourself.
Yep... ya pays yer money and takes yer chances.
That's why it's so important to do everything that we can to minimize the risk of that happening.
As things stand now, such Quality Control is oftentimes insufficient to prevent such mistakes OR such intentional and malignant mischief on the part of officials.
They say that the Devil is in the details, and there are a thousand-and-one ways to construct a series of Reforms and Safeguards for such matters.
All one needs is a little imagination and an understanding of the need for secondary or tertiary review by outside-the-jurisdiction non-stakeholders - a peer review process - in order to devise vastly better standards and quality control measures, which can also double as a means to accelerate the entire review and appeals process.
If we kill 99 Bad Guys and accidentally kill 1 Good Guy, that's an Acceptable Loss Ratio.
The Law is
meant to be impersonal and cold and logical in such matters.
Touchy-feely - even in connection with ourselves or our own people - doesn't really enter into it.
But, of course, it has to be administered by men and women of backbone.