handle keyboardinterrupt in multiprocessing