@Override
    public void close() throws IOException {
        if (data != null) {
            try {
                data.close();
            } catch (final RuntimeException e) {
                LOGGER.error("Unable to close data stream!", e);
            }
        }
        if (indexInputStream != null) {
            try {
                indexInputStream.close();
            } catch (final RuntimeException e) {
                LOGGER.error("Unable to close index stream!", e);
            }
        }

        data = null;
        indexInputStream = null;

        super.close();
    }
Closes the data and index input streams.

@throws IOException Could be thrown while closing the data or index.
@see java.io.InputStream#close()
stroom-data/stroom-data-store-impl-fs/src/main/java/stroom/data/store/impl/fs/RASegmentInputStream.java