Properly build a chain.done for execution.