OK, it looks like we are on the right track. If everything goes smoothly with no errors occurring in liblouisutdml or liblouis I can now delete the file, but if an error occurs I still can't delete it. For example, if a parsing error occurs and the method translateFile returns false, I can't delete the log.