BluetoothClient connection errors handle problem

I'm writing app to display data from soil moisture sensor and ultrasonic distance sensor with ESP32. I've tried adding error handle when for example ESP32 is disabled and user can't connect to it. When I click this (ESP is not working):

There is message "app is not responding". I just want to set some label to "Not connected" for example. The same thing when I'm connected and then disable Bluetooth on phone or disable ESP32 also want to set label to "not connected" being able to try again (without not responding). Can you help me?