close ws