release mouse grab when destroying the Mouse or Display