If the initialisation routine defines a closure routine then it will be
invoked when the application releases the psf using the
psf_release
call. This allows any workspace allocated or files
opened to be freed or closed before the application exits. The closure
routine signature is the same as that of the initialisation routine.