Return an error if failure were found, this fixes periodic script not sending mail

Reported by:	wblock