protected void Reopen(Uri url)
 {
     ClientPort.Dispose();
     ClientPort.Connect(url == null ? string.Empty : url.ToString());
 }