Try to avoid overruns when waiting for the device to get open