# Question about Exit()

**URL:** <https://forum.inductiveautomation.com/t/question-about-exit/74731>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 7, 2023, 6:21pm UTC](https://forum.inductiveautomation.com/t/question-about-exit/74731 "2023-06-07T18:21:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 7, 2023, 6:37pm UTC](https://forum.inductiveautomation.com/t/question-about-exit/74731/4 "2023-06-07T18:37:55Z")

</div>

`sys.exit()` and the Java equivalent aren't designed to return early from a method, they're designed to end the execution of the program, and the only reason your Ignition Gateway / JVM doesn't cease to exist after that is because we've hooked into prevent it.

It's not meant for what you're using it for.

---

_[View the full topic](https://forum.inductiveautomation.com/t/question-about-exit/74731)._
