Added AppFail error logging.