If you're in charge, and your people screw up, it's not their fault. It's yours.
Yes, they made a mistake. But why did they make it? Did you not train them sufficiently? Did you not give them the mentoring they need? Did you fail to get important tools or information to them? Did you put them in a position of greater responsibility than they're currently equipped to handle, or where their skills don't match the needs of the position?
At first when you try to wrap your mind around this line of thinking, it can be difficult. Why should I be held responsible when Jack the Junior Coder is the one who actually screwed up? But eventually, if you stick with it, you learn something important: on a real team, who screwed up is irrelevant. If one person fails, the whole team fails. And your job as a leader is to help your people get to a place where they fail less and less every day, not to pin blame.
This is the difference between a manager and a leader: a leader is someone who accepts responsibility not just for his own actions, but for his team's as well.