(1) The court in its discretion may mitigate the sentence (section 49(2)) in cases under section 307(2) and section 309(2) if the offender voluntarily gives up the further commission of the offence or otherwise averts the danger.
(2) The court in its discretion may mitigate the sentence (section 49(2)) under the following provisions or order a discharge pursuant to these provisions if the offender:
1. in cases under section 309(1) or section 314(1) voluntarily gives up the further commission of the offence or otherwise averts the danger; or
2. in cases under
(a) Section 307(2);
(b) Section 308(1) and (5);
(c) Section 309(6);
(d) Section 311(1);
(e) Section 312(1) and (6) No 1;
(f) Section 313, also in conjunction with section 308(5),
voluntarily averts the danger before substantial damage occurs.
(3) Whosoever
1. in cases under
(a) Section 307(4);
(b) Section 308(6);
(c) Section 311(3);
(d) Section 312(6) No 2;
(e) Section 313(2) in conjunction with section 308(6),
voluntarily averts the danger before substantial damage occurs or
2. in cases under section 310 voluntarily gives up the further commission of the offence or otherwise averts the danger
shall not be liable under the preceding provisions.
(4) If the danger is averted regardless of the contribution of the offender his voluntary and earnest efforts to avert it shall suffice.