If treatment under ORS 430.450 to 430.555 is unsuccessful, the prosecuting attorney and the court shall be notified before the defendant is released from treatment. After such notice the prosecution may be resumed. If the person has been convicted of the offense for which the person has been arrested, the court may proceed to impose sentence, which shall take into account the period during which the person participated in treatment.
ORS 430.510