41-5-205. Retention of jurisdiction -- termination. (1) The court may dismiss a petition or otherwise terminate jurisdiction on its own motion or on the motion or petition of any interested party at any time. Unless terminated by the court and except as provided in subsections (2) and (3), the jurisdiction of the court continues until the individual becomes 21 years of age.
(2) Court jurisdiction terminates when:
(b) the youth is discharged by the department; or
(3) The jurisdiction of the court over an extended jurisdiction juvenile, with respect to the offense for which the youth was convicted as an extended jurisdiction juvenile, extends until the offender becomes 25 years of age unless the court terminates jurisdiction before that date.
(4) The jurisdiction of the court is not terminated if the department issues a release from supervision due to the expiration of a commitment pursuant to 41-5-1522.