Data file sanity

It shouldn't have been a problem before because file handles, but this makes sure it's not a problem by preventing more than one thing from writing to data.yaml.
If you experience further corruption, please ask me what the wtf that's about, and I'll likely wtf with you and then go off to see if I can figure that one out.