log and exit failure