A man deliberately threw himself into prison just to avenge his wife's death