Write queue after connect windows

> In non-debug builds that assert is ignored by the compiler.

I thought that only counts if `NDEBUG` is defined before `<assert.h>` is included, but I don't see that defined anywhere that would affect those two asserts.