wait for import_shares to finish in do_import