Declare socket::~socket as virtual