Chapter 5 – On attempt and complicity
Section 2 – Withdrawal from an attempt and elimination of the effects of an offence by the perpetrator
(1) An attempt is not punishable if the perpetrator, on his or her own free will, has withdrawn from the completion of the offence, or otherwise prevented the consequence referred to in the statutory definition of the offence.
(2) If the offence involves several accomplices, the perpetrator, the instigator or the abettor is exempted from liability on the basis of withdrawal from an offence and elimination of the effects of an offence by the perpetrator only if he or she has succeeded in getting also the other participants to desist withdraw from completion of the offence or otherwise been able to prevent the consequence
referred to in the statutory definition of the offence or in another manner has eliminated the effects of his or her own actions on the completion of the offence.
EDIT.