public void Term(LoggerDelegate logger, object logContext) { if (_socket != null) { _socket.Close(); _socket = null; } }