Only flushing history, when not empty.
SocketAppenderBase now exposes socket.