Write queue after connect windows

We could do it with a callback, like I did before?