Wait for logout (bug 1106027)

Ah, I see. Cool.