catch ActivityNotFoundException to prevent crash.