def connectionLost(self, reason):
        try:
            try:
                reason.trap(ConnectionDone)
            except:
                log.err(None, "Problem with reason passed to connectionLost")
                self.exitCode = 1
        finally:
            reactor.stop()
Check that C{reason} is a L{Failure} wrapping a L{ConnectionDone}
dataset/ETHPy150Open twisted/twisted/twisted/test/stdio_test_loseconn.py/LoseConnChild.connectionLost