Write queue after connect windows

This has been adressed