Ok, thanks. However I find the TWS shows a similar behaviour. I have tried it over the last couple of days and when the TWS restarts, Zorro loses the connection and will not reconnect despite using the broker command SET_RESTART at a specified time (I assume the broker command is to be placed inside the run() function, correct?).

I am really at a loss here, ran out of ideas to try out. Is there really a solution that works reliably for Interactive Brokers?