add Service.Error; func main add loop to sleep