force close FileInputStream when loading from disk.