Wrap udpclient instantiation in a try catch