public void StopCygwinSocket() { var pagent = agent as PageantAgent; if (pagent == null) return; pagent.StopCygwinSocket(); }