Use our own kill function in order to avoid kill(-1), and rework killing in check_children.
Use our own kill function in order to avoid kill(-1), and rework killing in check_children.

check_children now utilizes stop_child in order to kill child
processes in order to reuse the same logic used elsewhere.

linearregression/erlexec,marcparadise/erlexec,jbalint/erlexec,joaohf/erlexec