correctly handle ping error in clients "ping goroutine"