removing closing socket