checks to see if user has apps before deleting user and if app is running before deleting app