safeguard on service restart