magic unload() method called on the player before switching resolution