Can we just
```js
try {
  var result = engine.render(str, options);
} catch (err) {
  return fn(err);
}
fn(null, result);
```