what about passing the ``spl_object_hash($process)`` to the closure instead of passing the whole Process (potentially creating a circular reference to the process as the closure is passed to the process later) and computing the hash for each output call ? The object hash will be the same each time