It is strange that on certain error the Program needs to restart. Generally, you would handle the error in such a way that the Program reinits variables, close refernces etc so that the user sees a seamless operation. The need to reboot the Computer is also strange.
To do the two tasks you are asking, You need to tell us about the operating system. There are differences between different OSes.
To restart Program - What you will have to do is make a batch Program with sufficient Wait and then it Calls your Exe file. Before Exiting Labview Use the Sytem Exec Vi to Start this Batch File. Then exit Labview. The Batch file waits and then Execute the Program. Make sure the System Exec Vi terminal "Wait Until Complete" is wired False.
To reboot Computer - Windows XP supports Command called ShutDown. Call this from command Line using System Exec Vi before exiting Labview.
Here is the link to Microsoft Documentation
http://tinyurl.com/6t4fn
Basically, you will have to make two Batch files and call one of them based on your condition.
I would investigate why such a drastic step is needed though
I hope you are familiar with Batch files
Good Luck!
Mache