I did this:
1.) Start Generic HID GUI
2.) Enter my vendor and product ID
3.) Click on "Find Device" --- device found fine
4.) Click on "Send and Receive Data->Once" -- report read correctly
5.) Physically Disconnect/Reconnect Device
6.) Either Do "Find My Device followed by Once", or just do "Once"
and didn't get the error you're seeing.
You could try placing a breakpoint at CloseCommunications and see if everything closes properly.
Here are a couple of suggested fixes that aren't on the web version of the code yet:
http://www.lvr.com/forum/index.php?topic=696.msg2584#msg2584http://www.lvr.com/forum/index.php?topic=708.msg2634#msg2634Jan