finish up socket process