record failure reason