I don’t suggest this.
Your application may crash due to:
- hangs / spins - memory corruption - programmer error / faulty logic (think loooping infinitely) - thermals / memory usage
Let launchd handle restarting your application by allowing the user a “Relaunch” button