kill tasks at the end of parallelWaitN()