Rare earth magnets will demagnetize when heated. I tried using one to seal a pressurized pop can stove but it demagnetized the first time I used it.