Logout in case the session is not found
Merge pull request #292 from romainneutron/session-not-found

[3.8] Logout in case the session is not found