def connectionLost(self, reason=protocol.connectionDone): '''The connection has been lost; clean up any request and clean up the protocol. '''