throw exception if session is not established