protected void closeContainer(URL url, BlueprintContainer container) {
if (container instanceof BlueprintContainerImpl) {
BlueprintContainerImpl impl = (BlueprintContainerImpl)container;
try {
LOG.info("Closing container at path " + url + " container " + container);
impl.destroy();
} catch (Exception e) {
LOG.info("Failed to close at " + url + " container " + container + ". " + e, e);
}
}
}