Pain Of Torture Can Make Innocent Seem Guilty
sciencedaily.com
sciencedaily.com
http://changingminds.org/explanations/theories/cognitive_dis... has a decent explanation of cognitive dissonance. The same phenomena is what causes many programmers to protect their self-image of being good programmers by being unable to find the bugs in their own code, acknowledge that the bugs are their fault, and then to be upset afterwards.
For a classic reference on that phenomena and what to do about it I recommend The Psychology of Computer Programming by Gerald M. Weinberg. (Yes, it is several decades old. But human nature hasn't changed and its advice is still good.) I also wrote up an explanation of the phenomena at http://www.perlmonks.org/?node_id=270083 some time ago.
Or as Upton Sinclair famously put it, it is difficult to get a man to understand something if his paycheck depends on his not understanding it.