when stopping, waitpid(child)