Modified the framework to always create a bundle context for a bundle when it is started and to invalidate it when it is stopped.