Add M2, program_end(), for glcanon.py and gcodemodule.cc