Maybe he thought by taking himself out he would spare his family the embarrassment of his trial. When people drop into real despair sometimes their thinking becomes distorted and they can actually convince themselves being gone would be better for the family.
Sad, sad situation for the family left behind. God's peace and comfort for them.