Introduce ServiceUtils. Fix issue with stop() foreground client for aout shutdown client policy