Disable headless mode in the config

Hi,
I have a question.
I am currently trying to make a config in which i want to open a headless browser navigate etc then open a non headless browser. How can i setup something like this?

The config settings are editable by the config itself at runtime.

// Headless

data.ConfigSettings.BrowserSettings.Headless = true;

BLOCK:PuppeteerOpenBrowser
ENDBLOCK

BLOCK:PuppeteerNavigateTo
  url = "https://example.com"
  loadedEvent = Load
  referer = ""
  timeout = 30000
ENDBLOCK

BLOCK:PuppeteerCloseBrowser
ENDBLOCK

// Normal

data.ConfigSettings.BrowserSettings.Headless = false;

BLOCK:PuppeteerOpenBrowser
ENDBLOCK

BLOCK:PuppeteerNavigateTo
  url = "https://example.com"
  loadedEvent = Load
  referer = ""
  timeout = 30000
ENDBLOCK

BLOCK:PuppeteerCloseBrowser
ENDBLOCK

Although keep in mind that there might be a very unfortunate case where two bots set that value at the same time (one to true and one to false) so you have no guarantee that the value stays what you set, since the same object is shared across all bots, but usually puppeteer configs are slow enough that this is not an issue.

Thank you so much!
Another question how can i disable unhandled exception popups.
I keep getting those whenever puppeteer times out making it impossible to stop/abort the job.

I just fixed it, please pull the new commit and recompile your build