Cleanup WindowContext class.