cleanup on socket docs