Write queue after connect windows

I don't really like this approach. I'd rather have a function which sets the error value and puts all requests in the completed queue, and another one which runs the callbaclks. See `uv__stream_flush_write_queue` and `uv__write_callbacks` on Unix.