Add Cancel Request for "WaitForDevice()"

Adding ability to cancel WaitForDevice loop.