add cleanup code for VBMObject