HPCC-8570 Created common function for kill

Removed usages of killall and moved all init_* scripts to use
the new kill_process function.

Signed-off-by: Philip Schwartz <philip.schwartz@lexisnexis.com>