HPCC-12183 Component cleanup with 12093 dependencies

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>
as it is, last sleep 1 will be a bit pointless, i.e. will sleep then break out of loop