The program could also use an extra piece of code switching off Bluetooth once I close the application!