Sign out resistant to portal errors