ARIES-768 Make the isolated application context manager more resilient to failure. Also don't try to uninstall bundles that are no longer installed