Added functions to destroy Titanium objects. Added Destructors to TDI.