I assume there's a clause in the franchise agreement covering this sort of thing. If the franchisor decides to exit a market, the agreement probably provides a process to do so.
Not a McD franchisee, but I've been involved in franchise businesses before.
Not a McD franchisee, but I've been involved in franchise businesses before.