fix usb lock close on usb disconnect