Inserted calls to close the file stream in wbImport()