NXP-6671: fix random 'StorageException: Cannot use closed connection handle' crash when importing folder with drag and drop plugin