And.. basic rule of thumb for headless mode: if you don't want image to leave to OS, put an exception handler around your code.
Because in headless mode , an UnhandledException by default quits to OS (logging an error before that, of course) -- Best regards, Igor Stasenko.
