fix stats response HTML and log send() errors to syslog