A Medford food-processing facility with ties to a Dunkin' franchisee is set to close and lay off several employees.