Earlier quoted context omitted.
I'm not sure who downvoted you. It is a good question. McDonald's and other consumer goods type companies are not sanctioned, so the company can sell its assets. For that matter they could continue to operate as normal in Russia if they choose.
It sounds like Russia might get declared a terrorist state soon. I assume that changes things.
Lithuania has apparently already done that.