The coffee chain expects $400 million in restructuring charges as it closes offices in Atlanta, Burbank, Chicago, and Dallas