Disable USB Host port

I’m looking for a way to disable (temporarily) the USB host port in a program I’m developing.
I have a device that I’m interfacing with via libusb that sometimes misbehaves and needs to be physically disconnected/reconnected in order to function again.
I’m hoping I can disable then re-enable the USB port.

If the host driver can be built as a module, then rmmod might work (didn't check).
You are aware that the USB host has hotplugging issue?
See other posts.