Close the correct importer

When importing images for another user, the import store
was not correctly closed.