So I've got 2 FDM printers and 1 SLA printer. I'm using Cura for both the FDMs, but I only have this issue with 1. When the print is completed, the printer restarts the program, either destroying the print, or sliding the glass bed all over with a gob of burning filament on the end. I've tried looking up the gcode to stop this, but can find anything. I've included the end program code if anyone can find anything I missed.
M104 S0
M140 S0
;Retract the filament
G92 E1
G1 E-1 F300
G28 X0 Y0
M84