Chapter V Some Principles of Criminal Liability
Section 8. Individual Criminal Responsibilities.
(c) A person shall be criminally liable for a crime defined and penalized in this Act if he/she attempts to commit such a crime by taking action that commences its execution by means of a substantial step, but the crime does not occur because of circumstances independent of the person's intention. However, a person who abandons the effort to commit the crime or otherwise prevents the completion of the crime shall not be liable for punishment under this Act for the attempt to commit the same if he/she completely and voluntarily gave up the criminal purpose.
EDIT.