reslist = pool.imap_unordered(unique, somelist)
pool.close()
for res in reslist:
    if res:
        pool.terminate()
break
pool.join()
Python Multiprocessing, Pool map - cancel all running processes if one, returns the desired result