'When the process closes, call C{connectionLost} for cleanup purposes
and forward the information to the C{_ampProtocol}.'

def processEnded(self, reason):

    self.connectionLost(reason)
    self._ampProtocol.connectionLost(reason)
    self.endDeferred.callback(reason)
