Window and application management cleanup.