Return after encountering errors in windows write
Return after encountering errors in windows write

The unix version breaks the while loop by returning on certain errors.
On Windows, the errors were being contained because the while loop was
never breaking. For example, pulling the USB cable out would raise
“Access Denied” errors but the while loop would run forever and contain
that error.

munyirik/node-serialport,rhuehn/node-serialport,munyirik/node-serialport,giseburt/node-serialport,rhuehn/node-serialport,rhuehn/node-serialport,voodootikigod/node-serialport,node-serialport/node-serialport,giseburt/node-serialport,giseburt/node-serialport,EmergingTechnologyAdvisors/node-serialport,ms-iot/node-serialport,node-serialport/node-serialport,munyirik/node-serialport,ms-iot/node-serialport,EmergingTechnologyAdvisors/node-serialport,munyirik/node-serialport,giseburt/node-serialport,rhuehn/node-serialport,node-serialport/node-serialport,voodootikigod/node-serialport,voodootikigod/node-serialport,EmergingTechnologyAdvisors/node-serialport,voodootikigod/node-serialport,ms-iot/node-serialport,EmergingTechnologyAdvisors/node-serialport,ms-iot/node-serialport,EmergingTechnologyAdvisors/node-serialport,ms-iot/node-serialport,node-serialport/node-serialport,node-serialport/node-serialport