46-14-313. Discharge of defendant from supervision. At the expiration of the period of commitment or period of treatment specified by the court under 46-14-312, the defendant must be discharged from custody and further supervision, subject only to the law regarding the civil commitment of persons suffering from serious mental illness.