Failure Recovery with Ontologically Generated Behaviour Trees