made multi-threaded process termination more clean