HPCC-12183 component cleanup with HPCC-12093 dependencies

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>
I think the above varying sleep time, would be better as a constant of e.g. 5 for all, with a loop logging a warning (e.g. 1 per sec) that not terminating gracefully if pid still running.