self.connected = False on shutdown