fix signal handlers: syslog is not reentrant