Write queue after connect windows

You can leave it there.