Small improvements in socket::~socket; examples++/server.cpp

We don't close the socket in socket::~socket() although sockets are
passed by-reference most of the time.