The arts-and-crafts chain Hobby Lobby was accused of defying stay-at-home orders in at least four states during the coronavirus outbreak, prompting officials to take action against the retailer.

The moves by state and local authorities in Colorado, Indiana, Ohio and Wisconsin to shut the stores down came as governors across much of the United States have signed stay-at-home orders and health authorities have urged Americans to practice social distancing. Still, some haven’t heeded the advice, from spring breakers to some megachurches. In Florida, a pastor was arrested after defying virus orders.

W. Eric Kuhn, the senior assistant state attorney general of Colorado, where there are 10 stores, sent a cease-and-desist letter to the company after it had reopened its stores in the state this week. The letter said the company’s actions violated a March 25 executive order signed by Gov. Jared Polis directing Coloradans to stay at home and requiring all businesses to close that were not designated by state health officials as critical.

Lawrence Pacheco, a spokesman for the State Attorney General’s Office, said on Friday that the company notified the office it would comply and closed all of its stores on Thursday.