BundleHost.closeBundleLoader(proxy);
if (proxy != null) { BundleHost.closeBundleLoader(proxy); try { proxy.getBundleHost().getBundleData().close(); } catch (IOException e) {  } }
	private void applyRemovalPending(BundleDelta bundleDelta) throws BundleException {		if ((bundleDelta.getType() & BundleDelta.REMOVAL_COMPLETE) != 0) {			BundleDescription bundle = bundleDelta.getBundle();			if (bundle.getDependents() != null && bundle.getDependents().length > 0) {				/* Reaching here is an internal error */				if (Debug.DEBUG && Debug.DEBUG_PACKAGEADMIN) {					Debug.println("Bundles still depend on removed bundle! " + bundle); //$NON-NLS-1$					Debug.printStackTrace(new Exception("Stack trace")); //$NON-NLS-1$				}				throw new BundleException(Msg.OSGI_INTERNAL_ERROR); //$NON-NLS-1$			}			BundleLoaderProxy proxy = (BundleLoaderProxy) bundle.getUserObject();			BundleHost.closeBundleLoader(proxy);		}	}