Using doall in the metadata example

Avoids closing the resource.
Merge pull request #158 from mynomoto/patch-1

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