import-dialog: clean up old entries better

If the previous import job is still running when we get a new
folder to scan, it'll add any entries that are still working their
way through the various queues, so we need to delete all its entries
when it's completely cancelled.