Write queue after connect windows

You don't seem to use this one.