Closing sockets & changed term to sockterm (conflict)