Issue with cancelling a print

So yesterday i set up an astrobox and attempted to run several prints it works flawlessly with one small problem I noticed, whenever I go to stop a print thats been sent via gcode and not STL as i cant send my slicer settings to the printer in an STL, I noticed that the printer doesnt actually stop it goes straight from its last path sometimes oddly grinding off a corner of my bed then tries to continue printing.

Any thoughts?