Write queue after connect windows

i addressed this one