Use SetFailState on database failure instead of logging.