handle abnormal termination of processes correctly in process.Pool