fixed service stop condition to evaluate on run-time