subprocessing keyboard interupt and logging work