shell: Don't show a disconnected dialog while logging out

Fixes #719