Retrying of failed ontologies implemented.

closes #340