public override void Close() { if (sock != null) { try { sch.ReleaseSession(sock); } finally { sock = null; } } }