Group homes for troubled teens closing after 18 years