destroyApps needs to be in a run loop