code: def after_connect(self):
          
          # TODO: check if this works.
          show_users = self.device.send("show users", timeout=120)
          result = re.search(pattern_manager.pattern(self.platform, 'connected_locally'), show_users)
          if result:
              self.log('Locally connected to Calvados. Exiting.')
              self.device.send('exit')
              return True
          return False
docs: Execute after connect.