Make sure the tld writer is closed properly after usage
Merge pull request #4 from bfd/patch-1

Make sure the tld writer is closed properly after usage