Applied patch to improve error handling of managed bundles (FELIX-937), to account for explicitly stopped bundles (FELIX-938), and to try to optimize processing (FELIX-939).