Called once when the underlying Pregel run completes without throwing. Optional — only needed for non-channel teardown (e.g. resolving promises).
May return a PromiseLike<void> to defer the main event log close
until the async work (e.g. emitting terminal lifecycle events) has
completed. The mux awaits all returned promises before closing its
event log.
finalize(): void | PromiseLike<void>