Should fix tombstoning and context switching issues around #38

For now, just goes back and exits scanner if tombstoned or app switched.