runEndFunctions() -- call all the functions previously recorded by addEndFunction.
The funuctions are called with no arguments.
Code:
-- ../../../Macaulay2/m2/classes.m2:98 runEndFunctions = () -> scan(endFunctions, f -> f())