the isopen test will need to be swapped with the uv_is_writable test because libuv on windows annoyingly responds to a shutdown request by marking the stream not writable