Fixed bug during import if file was in use by another process