Fix occasional hotplug errors on Linux