Destroy window does not work