Write queue after connect windows

Same as above.