You can keep the death penalty if you also enact this law:
If a person is convicted, sentenced to death, executed, and later exonerated, kill the witnesses who testified against him, the judge who sentenced him, the jury who found him guilty, and the prosecution team.
That will either...