There is a certain crime, that if it is attempted, is punishable, but if it is committed, is not punishable. What is the crime?

Suicide
There is a certain crime, that if it is attempted, is punishable, but if it is committed, is not punishable. What is the crime?
Suicide