Write queue after connect windows

style: passes 80 columns.