Add sanity checking to Session class. Exceptions are now thrown when
trying to access the session when the session is not active.