It's not right to kill him.
No matter what he done.

Putting him in a cell on his own for the rest of his life.
No human contact apart from receiving food everyday.

That should have been his punishment.