Adding ability to send metrics using UDP.
Added better error logging for failures when sending metrics.