private void WriteException(Exception e, SendState state) { LOG.Error("ScadaServer write error", e); SendSocketError?.Invoke(e, state); }