Kill child processes properly