code: def wait(self):
          
          try:
              self.relay.wait()
              self.responder.wait()
          except KeyboardInterrupt:
              print_notification("Stopping")
          finally:
              self.terminate_processes()
docs: This function waits for the relay and responding processes to exit.
              Captures KeyboardInterrupt to shutdown these processes.