Async Hooks API
before(asyncId) / after(asyncId) / destroy(asyncId)
destroy(asyncId) called after the resource corresponding to asyncId is destroyed
function destroy(id) {
print({ stage: 'destroy', id })
}
const hook = asyncHooks.createHook({ init, before, after, destroy })