public void endSession() { if (sessionId != null) { Hashtable data = new Hashtable(); data.Add("@class", ".EndSessionRequest"); data.Add("sessionId", sessionId); connector.send(data); sessionId = null; Close(); } }