private void CleanupSession() { // This cleanup has only to be done if we were able to connect and teh XMPP Stream was started DestroyKeepAliveTimer(); m_CleanUpDone = true; StreamParser.Reset(); m_IqGrabber.Clear(); if (OnClose != null) { OnClose(this); } }