The company was once one of the largest pharmacy chains in the country, but struggled financially in recent years.