Hi JayendraSaiChakradhar
You cannot stop the pipeline without closing the device as well. You can make a script that waits until the device reconnects, then start a different pipeline all within the same script.
If you don't want the device to stop, you can implement a Script node to change the pipeline flow (example)
Thanks,
Jaka