Bug fix for the calling of terminate().
This is now an object method which is part of the structural data API, rather than a module function.
Authored by: bugman 2008-04-09
Parent: [r5514]
Child: [r5516]