Always close fds returned by tempfile.mkstemp()