Fixed Ontology TDB Stuff to prevent 'Already Closed' Exception.