Error: "A listener indicated an asynchronous response by returning true"

Happened again this morning, I didn’t manage to catch a video of it but here’s what I noticed:

ui.vision would not perform anymore commands on the browser, when I stopped the macro and started it again it wouldn’t run the first command which was “execute script | return 1 | count”

Restarting the browser did the trick.

Does anyone know why this would happen? My macro would only work once I restarted the browser.

Is there anyway to make a timeout error so that if a command takes too long to execute I could restart the browser and the macro?