Put the pid-reinitializing code in subvi ReinitializeWhenStopped.vi