Couple of other things that you can try out during your troubleshooting:
- Make sure to dispose all the pages & browser being opened (as I suggested in comments).
- Try adding the
--full-memory-crash-reportflag (& other flags related to Crash-handling such as ) in your arguments to get more insight as in what's going wrong with your execution. You can literally take a mini-dump of your execution to understand the issue. The entire list of Chromium flags can be found here: Chromium Command Line Flags - Make sure nothing is going wrong with Garbage Collection. Since it's just a sample code, you'll have to make sure yourself that you're adding in all the necessary code required for a clean/optimised execution.