GC shut down when opening a gcode file

Absolutely,

This thread should have answers for all different operating systems: