UPD: multiprocessing safely terminate