public virtual void CloseSession() { CurrentSession.OnClosed(); OnSessionClosed(); CurrentSession = null; }