Use custom log function if passed in for statsd errors

:eyeglasses: @spladug 
i have a feeling this might end up quite spammy because of browsers (especially chrome) doing hard connection closes on navigation events etc. just something to keep an eye out for and not be terribly surprised about.