title: SerialPort: App causes Blue Screen on disconnecting device while it transfers data
body: <p>I working on a solution for device with Serial Port (with USB bridge).
  Everything is ok except the thing it causes Blue Screen on disconnecting device durin data transfer.
  And my app doesn't catch any exception about that. Is there any way to handle it? Ask users do not disconnect until data transferred completely is not a way.</p>
  
  <p>I'm using System.IO.Ports.SerialPort class to read data from device.</p>