Fix dataset fetch by closing a temporary file prior to moving.
Merge pull request #40 from jmargeta/dataset_fetch_fix

Fix dataset fetch by closing a temporary file prior to moving.