Won’t need to do this if we use [tempfiles](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html) — they get deleted when their references are garbage collected.