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:
unlink($this->_tempFile);
in line 4411. If you're using templates add this:
unlink($fileName);
after line 4587.
Regards.