close
Closes the graph's extensions and runs its close callbacks. Only the first call does anything. Cancelling the caller doesn't stop cleanup partway through.
An extension or callback that fails doesn't stop the others. This throws the first failure after they've all run, with later failures attached as suppressed exceptions.