Ahh yes, it can be justified. Chucks just told you why. Its a system of protection for all involved. If this chap flipped out at the court house while not restrained and hurt someone, ALL of you who are currently bemoaning the fact that he is in shackles would without doubt decry the justice system for being lax, or unprepared.
You just remember that.
I hope the Captain gets the mental help required and makes a speedy recovery.