debug the logout