protected double finallyCloseDouble(DoubleSupplier ds) {
        try {
            return ds.getAsDouble();
        } catch (Exception e) {
            LOGGER.error(e);
            throw e;
        } finally {
            close();
        }
    }
@author pemi
@param <T> The type of the super class
@param <P> Pipeline type
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/stream/builder/AbstractStreamBuilder.java