Remove dupes in history
Fix some race conditions in IndexerJob::abort.