While it's reasonable to ask whether the death penalty is appropriate even in cases such as treason, there's a fair case to be made that this level of subversion of the legal system is treason.
What is barbaric is putting people in cages without any reason to do so. Elected officials should be held to a higher standard and when they do wrong the consequences of those actions should be much higher. IE: Death.