# Close client through scripting

**URL:** <https://forum.inductiveautomation.com/t/close-client-through-scripting/11898>\
**Category:** Ignition\
**Created:** [July 6, 2016, 12:24pm UTC](https://forum.inductiveautomation.com/t/close-client-through-scripting/11898 "2016-07-06T12:24:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrandonSHill](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/brandonshill/32/6805_2.png) [@BrandonSHill](https://forum.inductiveautomation.com/u/BrandonSHill)\
**Post date:** [July 6, 2016, 12:24pm UTC](https://forum.inductiveautomation.com/t/close-client-through-scripting/11898/1 "2016-07-06T12:24:46Z")

</div>

I’m attempting to create an onClick event on a component that will close the client. I want to disable the menu bar for aesthetics-sake, but still want to be able to close the client elsewhere. Any ideaas how to do this? I’m assuming I have to somehow traverse the object model to the JFrame object and close it, but unsure how to do so.

Any assistance will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [July 6, 2016, 12:36pm UTC](https://forum.inductiveautomation.com/t/close-client-through-scripting/11898/2 "2016-07-06T12:36:56Z")

</div>

is

```auto
system.util.exit()
```

not good for you? 🙂
