What gcode runs after a print?

So I’m trying to get my own “macros” running by uploading gcode files that simply contain movement commands, for example:

; Third position for bedleveling (back-middle)
M205 T100 ; Set travel speed to 100mm/s
G1 Z5 Y95 X95

And when I “print” this, it moves my hotend to the specified location. But once that is done, it pauses for about 5 seconds, and then moves my hotend back to X0 Y0.

Why is that? Is there something in Astroprint that sends that command after a print?

I’ve noticed the same thing. I run gcode from Cura and when my part on my mini is done, it’s supposed to move the bed to the front so we can remove the finished part. After the bed moves forward, if i’m using my cura-created gcode in astroprint the bed moves forward after printing (the last gcode command from cura) then after a few seconds the bed moves all the way back. A minor annoyance, but I this line of code is done by astroprint and not cura. I’ve looked at the code and there’s nothing at the end of my code telling the bed to move back.