Destroy all component when destroying windows