This immediately made me think of Captain Charles McVay, the commander of the USS Indianapolis that the Navy court-martialed for losing his ship in combat.
Kind of unbelievable, but I guess there might be more to the event that this news article isn't showing.