PDI-10867 - FileInputStream was being closed too early (it will be closed in dispose)