When I am disconnecting USB-flash in non debug run, ROS continues performing normally, I am even able to connect again and read from flash. But when I am shutting down or restarting system when device is disconnected, it throws BSoD. General assumption is that there is bug in surprise removal handling.
Also sometimes it throws BSoD just after disconnection, but it is very hard to reproduce, I saw that 1 time after 10-15 tests. I think that is also PnP issue which is raising due to some timing conditions.
I have some patches related PnP handling which were tested on 2k3 and will be tested on ROS soon. I'll update this ticket if any improvement will be achieved with them.
The interesting thing is that when I am doing same test in debug run with debugger attached, it is rebooting without hang.
Without debugger issue is easy reproducible, just need to remove flash and reboot or shut down.