Each server should take care of temp files. I recommend you to do a cron task that delete them or use default config (on restart or depending on the disk space); but if you prefer to remove each temp file in CreateDocx class, just add this code:
in line 4411. If you're using templates add this:
after line 4587.