Hi Mike, thanks for the answer.
Wait to the timeout it's not an issue. I can do that. The problem is, after i disconnect the device, the application starts to show an error popup with the error code "0x00050015". What i should do to not show the popup, i could not figure out where it's throwing that message.
I have a timer to read the device data from time to time, but it not seems to be there. I'm check if the device it is connected before everything and also have a try/catch to prevent all possible exceptions.
Let me know if you need more information.