Return the error rather than logging it (and otherwise ignoring it)
Return the error rather than logging it (and otherwise ignoring it)

This should fix elastic/libbeat#77.

yapdns/yapdnsbeat,yapdns/yapdnsbeat