Error after SSO logout

Did you try setting logout redirect somewhere safe like the forum root ?