#2 fix logout of session manager