[FEAT] close socket in dtor