unix: make write callbacks return ECONNABORTED when socket closed

IOCP returns an ECONNABORTED in the write callbacks when closing
the socket when there are still writes left. This is reasonable,
because it gives us more information than a ECANCELLED. Also IOCP
operations are cancelable.