Yep -- it wasn't clear how that would interact with the try/catch block and error handling here, this seemed a lot simpler. If you feel strongly, or think that just having `Emitcode.to_file` open and close itself is safe, I can do that. (Can `Emitcode.to_file` throw an exception?)