Chains like Starbucks, Wendy's and Denny's announced plans to close underperforming restaurants in 2025.