A lawsuit on behalf of patients was filed Thursday seeking to prevent the closure of a high-security unit at the Connecticut mental hospital that treats those acquitted of crimes by reason of insanity.