I find a solution to clean the temp file, setting the permission as 0777.
/* Mode of temporary image files */
$this->file_mode = 0777;
/* Mode of temporary answer text files */
$this->answer_file_mode = 0777;
Do you think can find a more structured solution?