When destroying the window, remove (if exists) the escape timeout handler.