cket_appender.html">XMLSocketAppender</a></code> is no longer attached to any logger, it will not be destroyed in the presence of a connector thread. A connector thread exists only if the connection to the server is down. To avoid this destruction problem, you should <a class="el" href="classlog4cxx_1_1net_1_1_socket_appender_skeleton.html#5ae591df94fc66ccb85cbb6565368bca">close</a> the the <code><a class="el" href="classlog4cxx_1_1net_1_1_x_m_l_socket_appender.html">XMLSocketAppender</a></code> explicitly.