Fixed bug with DYaml not closing its streams.