public void Shutdown()
{
Debug.Assert(bundleRepository != null);
for (int i = bundleRepository.Count - 1; i >= 0; i--)
{
IBundle bundle = bundleRepository[i];
int bundleId = bundle.Id;
StopBundle(bundleId);
UninstallBundle(bundleId);
bundle = null;
}
}