See FIXME in disconnect method in _USBTransport class in pybricksdev/connections/pybricks.py from #69.
Support for this in PyUSB is currently waiting approval in pyusb/pyusb#160.
This comment contains a monkey patch that we may be able to use until the PR is approved.