made UdpClient synchronous