Commit 56edabc64d11d98f6931ef5784c39aaf2cba7eb8

Con Kolivas 2013-10-12T11:06:54

Use a timeout with usb handle events set to a nominal 200ms and wait for the polling thread to shut down before deinitialising libusb.