I get this about 20% of the time even when logged in. The trick usually is to hit login then move your char around or do something in game while it attaches. Often it won't attach if the window is in background.