Fix bug that caused failures to not be logged.