The superintendent or director of any state-operated facility, as defined in subsection (c) of § 17a-458, may place any person with psychiatric disabilities committed to such state-operated facility, if such person is no longer in need of active psychiatric treatment in such state-operated facility, in a residential care home licensed by the Department of Public Health in accordance with sections 19a-490 to 19a-503, inclusive, or a chronic and convalescent hospital, provided such person shall, despite such transfer, remain subject to the medical supervision of the superintendent or director of such state-operated facility, and such superintendent or director may, if medically indicated, order and provide for the return of any such patient to such state-operated facility, subject to any limitations of the term of commitment contained in the order of commitment under which such patient was committed to such state-operated facility. The provisions of this section shall not apply to any person who is under a term of imprisonment or who has not met the requirements of the condition of release set to provide the reasonable assurance of such person’s appearance in court.