Data import: do not close input stream here, it should be closed by the creator of these input streams