Kill child processes properly.