I get an error at this line if I navigate away from the import page while an import is in progress.