Walgreens, grappling with continued financial losses, lays out plan to shutter 1,200 drugstores