Wait for logout (bug 1106027)