This turns out not to be quite reliable. I should have caught this in review, but I think the problem is that stop_running_app calls get_manifest, which calls get_version; but it does this *after* removing the registration link, so tends to fail. We should probably stop the app before removing the link, or at least get hold of the manifest first.
This turns out not to be quite reliable. I should have caught this in review, but I think the problem is that stop_running_app calls get_manifest, which calls get_version; but it does this *after* removing the registration link, so tends to fail. We should probably stop the app before removing the link, or at least get hold of the manifest first.