catch ontology delete error when deleting a repository