Log file not created when macro errors

I’m running exported macros (html) from Powershell, using the script you
provide on your website. Whenever any of the commands in the macro fail, even
though a red [error] entry appears in the Kantu console, the macro just hangs
until it times out and the log file is never created. This means that
I can’t extract accurate error information and pass it to Team City.
It also means the macro takes much longer to complete than it would do
if it just came to an end and created the log when it errors. Is this
by design or is it a bug?

I tried storing !errorignore as true, but that made no difference.

Your help is much appreciated.