heartbeat checking and service restart