Added ECONNREFUSED handling when logging messages to dead server