Closed unused sockets when forking for parallel uploads.