It is scary how an overzealous prosecutor can drop a hammer so hard. I don't know the whole story. From what I've read, I believe what got the Sgt in trouble was an alleged attempt to broom it afterwards. There is a lesson there, but there is an even more important lesson about helping out a fellow officer, and I don't mean the blue wall of silence. Protect each other! I will not second guess the officers in this incident, but keep the end result in your head next time you have a real winner in custody. If the guy is in custody and things are still escalating, or if you see it getting to a fellow officer STEP IN. No need for a big production, walk up, tell the officer, "I'll watch him, why don't you get your notes in order." or something along those lines to help immediately defuse the situation. You can transport, or stand by for the wagon.
If you are the officer dealing with the prisoner, and someone offers to take him from you - let them. Get your notes in order, talk to witnesses, or go around the corner and kick a trashcan or something. Don't let them win by getting to you. If your guest insists on being a jerk in the booking area, nothing says you have to book him immediately, let him cool his heels in a cell. Distance = safety, that works in litigation also.
Finally, if something does happen, the feds are going to go after everyone, so the best way to avoid paying for someone else's sins is to prevent it in the first place. Watch out for each other, help each other. Give the officer immediately involved a chance to gather his thoughts. Backup doesn't end once the cuffs are on.