Stop bootstrapping when the app enters the background. Only end search when the app itself enters the background. Bootstrap when the app is resumed. Fix interrupting threads.