Logout URL was never called when API signOut call fail.

If the request to signOut fail, the redirect to logoutURL was never made.

I've added a listener to IO_ERROR.