_exec: close socket
archive-conf: fix for python3, bug #481518