With respect to a charge under IC 35-41-2-4, IC 35-41-5-1, or IC 35-41-5-2, it is a defense that the person who engaged in the prohibited conduct voluntarily abandoned his effort to commit the underlying crime and voluntarily prevented its commission.
IC 35-41-3-10