Added random loss in network client. error rate is set in constructor, or omitted for no added loss