fixed concurrency problems with locking resources, clicking stop then dedupe again now works