[Issue #513] Script freezes unexpectedly with no error written to log. Manual pause/resume brings it back

@TheWhippinpost the issue you mentioned in [Fixed] ipcPromise: onAsk timeout 3000 for cmd "RUN_COMMAND" is probably a side effect of these fixes. That is why it would be great to get a test macro.