Move from inline closures to a Dumper wrapper
Break the loop with setImmediate

This should break the chain of promises earlier in order to reduce the
pressure on the GC.