RavensFan Thanks for clearing up the mess.
The wait is 70 milliseconds, but it takes a second to shut down, I think this is my programming error. Because if I close the program in Myrio or any running program on the computer, the other one closes a little later.