Logout issues debugging