HPCC-12764 Modified stop_thor stopslaves logic

Signed-off-by: Michael Gardner <Michael.Gardner@lexisnexis.com>