The Harborside Health Center in Oakland, California, was targeted in 2012 for closure by DEA agents because one of the activities they did was using and selling Marijuana, even though it was done only for medicinal purposes. Although the procedure was authorized by a U.S Attorney, the procedure had to be stopped and couldn´t be carried out after the legal representatives of the health center filed against it.
In the end, the answer is that DEA agents couldn´t close the center, even if it sells something that in general is deemed illegal, as Marijuana, because California state law emphasizes that both the use and sell of Marijuana is allowed if it is done for medicinal purposes, as was the case of the Harborside Center.
That is because Californian state law allows sales of Medical Marijuana, and they can't prove that the sales were illegal and that there were problematic things included because it's legal in the state.