def wait(self):
try:<EOL><INDENT>self.relay.wait()<EOL>self.responder.wait()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>print_notification("<STR_LIT>")<EOL><DEDENT>finally:<EOL><INDENT>self.terminate_processes()<EOL><DEDENT>
This function waits for the relay and responding processes to exit.
Captures KeyboardInterrupt to shutdown these processes.