I have a different patch where it duplicates code instead, and opens a second connection to the syslog host. Also ugly but maybe more stable. I'll submit that instead.