'Synchronously run any cleanups which have been added.'

def _runCleanups(self, result):

    while (len(self._cleanups) > 0):
        (f, args, kwargs) = self._cleanups.pop()
        try:
            f(*args, **kwargs)
        except:
            f = failure.Failure()
            result.addError(self, f)
