Using doall in the metadata example

Avoids closing the resource.