we now exit with 1 if an error has been logged.