added multithread for DetectLossService service