The closures add to a growing list of retailers that have been closing. The pharmacy giant said many of the locations have been “underperforming.”