private static bool IsDfsClientClose(DFSClient c) { try { c.Exists(string.Empty); } catch (IOException e) { return(e.Message.Equals("Filesystem closed")); } return(false); }