cleanup the temporary file afterward