'Call an errback.
@type reason: L{Failure <failure.Failure>}
@param reason: The reason the child process terminated.'

def processEnded(self, reason):

    if (self.onEnd is not None):
        self.onEnd.errback(reason)
