Close socket savely in the destructor.