I wonder if the contracts with Russia and Qatar have any get out clauses.
There is no such thing. But countries boycotting events such as World Cup, after confirming their presence will be severely punished, if the past instances are anything to go by. For example, they can be banned from the next two or three world cups and other regional FIFA tournaments, in addition to a very heavy financial penalty.