// The try covers setup as well as the displayed example. try { // Page reference context; declarations are registered explicitly by the displayed examples. const engine = keepEngine(await Engine.create({ profile: 'small' })) /* API_REFERENCE_EXAMPLE */ } finally { // Engine.close cascades to every ruleset, input, session and result it owns. closeEngines() }