Handle errors when the return type is error.
Handle errors when the return type is error.

This does something with all errors that can be returned by the Beater
function. Something can mean exiting with error code 1 in case of issues
during setup, or just logging the error in other cases.

Part of the solution for #75.

yapdns/yapdnsbeat,yapdns/yapdnsbeat