# Closing only PApplet with exit() code

**URL:** <https://discourse.processing.org/t/closing-only-papplet-with-exit-code/18591>\
**Category:** Coding Questions\
**Created:** [March 11, 2020, 10:08am UTC](https://discourse.processing.org/t/closing-only-papplet-with-exit-code/18591 "2020-03-11T10:08:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 11, 2020, 9:57pm UTC](https://discourse.processing.org/t/closing-only-papplet-with-exit-code/18591/2 "2020-03-11T21:57:24Z")

</div>

> [@Closing a second window](https://discourse.processing.org/t/closing-a-second-window/381/3):
>
> [https://Forum.Processing.org/two/discussion/17310/intercept-window-closure-in-p2d-renderer-processing-3#Item\_5](https://Forum.Processing.org/two/discussion/17310/intercept-window-closure-in-p2d-renderer-processing-3#Item_5)

---

_[View the full topic](https://discourse.processing.org/t/closing-only-papplet-with-exit-code/18591)._
