Regularly check whether AsyncLoadApps has been cancelled
Optimise imports