Bluetooth Classic ESP32 automatic re-connect function is interrupting the App

Dear all

I have now reviewed different projects from similar threads in this community like this one:

Bluetooth Auto Connect without user action HC-05, HC-06, ESP32, no ListPicker or TinyDB needed

Unfortunately, the behavior of this command has been confirmed by all examples I have found: It halts the app during the (unsuccessful) connection attempt. :

BT Conn

Any idea or workaround to solve this?

Thanks.

Cervino