public void close()

in boot/src/main/java/org/apache/karaf/minho/boot/service/ServiceRegistry.java [107:123]


    public void close() {
        log.info("Closing service registry");
        final IllegalStateException ise = new IllegalStateException("Can't stop service registry");
        registry.values().stream() // we should filter only for lifecycle service as others must use it
                .filter(AutoCloseable.class::isInstance)
                .map(AutoCloseable.class::cast)
                .forEach(service -> {
                    try {
                        service.close();
                    } catch (final Exception e) {
                        ise.addSuppressed(e);
                    }
                });
        if (ise.getSuppressed().length > 0) {
            throw ise;
        }
    }