HPCC-12183 Component Cleanup with HPCC-12093 dependencies

re-target from master to candidate-5.0.4
The call to check_status returning a non zero doesn't necessarily mean that the component was stopped cleanly, which means there is a possibility of an orphan still being present (even though the failure message says 'already stopped'.)