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

Crime puzzle

Suicide