Whoever voluntarily withdraws from the commission of a criminal act or prevents its results, will only be liable for the punishable acts performed prior to abandonment.