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