/// <summary> /// Close the default session. /// </summary> /// <returns>True if successfully closed session.</returns> public static bool CloseDefaultSession() { bool bResult = true; // Try to reconnect to session if _sessionObj is null. if (_defaultSession != null || LoadStoredDefaultSession()) { bResult = _defaultSession.CloseSession(); _defaultSession = null; } return bResult; }