Merge pull request #607 from betafive/pbarker/issue578

Issue 578: Close temp_fd in 7zip and xar writers