Avoid a InterruptedException that can occur when the bundle is being un-deployed.