I'd try to collect all non-apps before exiting.