only kill the child if it hasn't exited first