Certainty of punishment made zero difference to Adam Lanza.
If we do not want school choldren targeted for violence, then defend them.
It is as simple as that, nothing else matters at all.
The fact of the matter is... we are not in total control of everything in life and can NEVER stop someone intent on killing others that is willing to die to achieve their goal.
This is just a sad fact of life.