Call connectionLost to avoid dirty reactor.