How are you disabling the bluetooth port? It sounds like it is not actually disabled since you are still communicating with your device.
When you run highlight execution, do you see at which part of your program the VI is hanging?
Before while loop i get the error, I will change the driver of bluetoth with Bluesoleil, maybe works.
I think I solved the problem I put Bluesoleil version 10 and work great nok, I hope will never give any problem. Thanks for you're time man.
Glad that worked for you!