Add a call to close the object when we are done writing it.
Authored by: smm 2002-05-17
Parent: [r3994]
Child: [r3996]