Added extra checks when InfluxDB messages can't be sent out as my logging message was generating an unhandled exception.