Waiting for communication error during zed streaming and restarting streaming

Streaming is in progress from the NANO board to the TX2 board. When the communication distance increases or a communication error occurs during data transmission, communication is cut off and the program is turned off. Is there a function or method to wait and restart streaming communication in case of communication error?

solved problem!!!