Write queue after connect windows

we also need to check if the handle is bound, aka, if handle->handle != INVALID_HANDLE. Unix returns EBADF in that case.