GK, I see where you are going. I was not advocating no trial in the event of murder.
You have a trial to convict and then, by definition, that person is insane, certainly outside the bounds of our society. According to our rules an inane person must be treated not imprisoned.
There are several such people in UK who have been tried and are now incarcerated in mental institutions rather than prisons. That is my point.