Close the uploaded tempfile to prevent handle leakage