Cleaning up temporary file handling.