handle error scenario of finding device