Heat guns actually aren't the best move for rubber gaskets. They soften the plastic and the rubber at the same time, and the rubber can warp or even melt a little before the plastic gives. Next time try a hair dryer on low first, or slide a thin putty knife wrapped in a rag behind the gasket to break the seal. Heat works, but a heat gun is overkill for something that thin. Glad it came off in one piece though, that's lucky.