This is to avoid getting X11 errors (thus aborting/exiting with a failure) during rapid hotplugs, which may happen during e.g. CI testing.