catch exceptions in BLE callbacks