When the handle belongs to a temporary file, the file is also deleted. Finally, the file handle itself is freed.