There was no punishment here. There was simply cause and effect. The car was a danger to other people, so the car had to be taken off the road. The criminal decided to stay inside the car, that they knew would be taken off the road. Result, the criminal died. Good.
If I strap myself to a bomb that's set to detonate one a bridge in 10 seconds and the police have to choose between pushing the bomb (and me) in the river,eading to me drowning, or letting innocent people die... I am going to die. And yes, technically I would be "executed for putting a chain and lock around me" but the fact of the matter is, endanger other people, leave the police no other choice, you will die.