Compass Medical abruptly closed its six Massachusetts practices, included one in Middlesborough, last June. Beth Israel Lahey will now take it over.