It will be a little challenging since I dont have small executable which I can share...
BTW as I understand there was no such issue in previous version of BrainFlow(or it was hidden somehow), the most simple way to reproduce is to remove this delay and run, we see this error
[2020-05-24 18:23:01.909] [brainflow_logger] [info] Found device with ID 1300732020-05-24 18:23:06.914987+0200 brainflow_get_data[20485:142779] [CoreBluetooth] API MISUSE: Cancelling connection for unused peripheral <CBPeripheral: 0x100f13850, identifier = E33FA623-6431-479B-8B21-D586ACB3A97C, name = BrainBit, state = connecting>, Did you forget to keep a reference to it?[2020-05-24 18:23:11.931] [brainflow_logger] [error] Device is not connected.[2020-05-24 18:23:11.935] [brainflow_logger] [error] failed to prepare session7Process 20485 exited with status = 7 (0x00000007)