You are right. P0 means servo 0 which you used.
What I meant is add R300 or R500 so the servo turns off after a while or it drags power and jitters all the time.
Start/end scripts get run when you do G32 at start and end. It has nothing to do with a print. Autolevel functions run them to activate/deactivate probes. G30 can also do it with P parameter
P1 = start and measure
P2 = measure + end
P3 = start + measure + stop