sgpe: Fix logout detection, simpler code

The second error was never caught.
sgpe: Fix warning
sgpe: Working account list