Added mechanism to cleanout plugin objects when a CppTPGFactory object is deleted (even though it's a singleton)