Fix #3  - prevent exception if session is not available.