services stop and start as hosts are added and removed

fixes zen-13093
it is waiting for either the connection or the shutdown, line 827 or 829.