clean up window/scene/view references and coordination.