Using doall in the metadata example to avoid the resource closing.

Avoids closing the resource.