public void Disconnect() { try { session.DisableEvent(EventType.AllEnabled); session.Clear(); io = null; session = null; } catch (Exception exception) { throw CreateThrowUpException(exception); } }