Add try/catch if the device is not connected