Reverted changes in libusb context handling
Added additional calls to libusb_exit() in case of an error to avoid possible memory leaks