[Title] Added window close time, mode and collection destory logic