Mostly correct @Tropical_Willie.
The DEA can not close a pharmacy but it can pull the license to distribute controlled (scheduled) drugs, as it did in Lakeland, FL for 2 CVS pharmacies a little over a year ago because of non-compliance with Federal law.
The FDA is responsible for overseeing drug safety, which does not necessarily involve the entire facility. The Framingham facility (New England Compounding Center) and many of its affiliates (AmeriDose) voluntarily suspended all operations while the menengits outbreak (betamethasone and triamcinolone pre-mixes shipped to hospitals) was being investigated. Granted, mandatory action was probably imminent, but the FDA did not “shut them down”
States are responsible for registration and monitoring compliance so the most direct means of finding registered, compliant pharmacy lists is to contact the state Board of Pharmacy directly.