Write queue after connect windows

Ok, but all the surrounding code does it before, not in the default case. Do you maybe want me to leave it for consistency?