Do not throw exception on logout if session is nil. Fixes #78
Merge pull request #79 from emilsoman/nil-session-logout

Do not throw exception on logout if session is nil. Fixes #78 , #37