Added a destroy function for objects not in the main object list.