code: def fail(self, text=u"FAIL", err=False):
          
          # Do not display spin text for fail state
          self._text = None
  
          _text = text if text else u"FAIL"
          err = err or not self.write_to_stdout
          self._freeze(_text, err=err)
docs: Set fail finalizer to a spinner.