Grasshopper shuts down


I have a script i Grasshopper that every 2-4th time I run both Rhino and Grasshopper shuts down without giving me any error or log file to look at.

Where and how can I start to troubleshoot it?
I have tried disable some of the components in order to see which is not working properly.
But it’s strange that it only sometimes shuts down and not giving me any info of the problem.

Best regards