graceful handling of application:which_applications() timeout