# Processing stop button doesn't close sketch window

**URL:** <https://discourse.processing.org/t/processing-stop-button-doesnt-close-sketch-window/38084>\
**Category:** Processing.py\
**Created:** [July 25, 2022, 12:12am UTC](https://discourse.processing.org/t/processing-stop-button-doesnt-close-sketch-window/38084 "2022-07-25T00:12:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TipTop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tiptop/32/16687_2.png) [@TipTop](https://discourse.processing.org/u/TipTop)\
**Post date:** [July 25, 2022, 12:12am UTC](https://discourse.processing.org/t/processing-stop-button-doesnt-close-sketch-window/38084/1 "2022-07-25T00:12:51Z")

</div>

Hello,

I expected that the sketch window would close when the stop button is pressed, as I believe it does with Java and p5 sketches. However, that does not seem to be the case with python sketches.

Is this expected behavior or is there something special that needs to be done?

Thank you!

---

<div class="post-metadata">

**Author:** ![tabreturn](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tabreturn/32/3697_2.png) [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Post date:** [July 25, 2022, 1:25am UTC](https://discourse.processing.org/t/processing-stop-button-doesnt-close-sketch-window/38084/2 "2022-07-25T01:25:59Z")

</div>

Welcome @TipTop

Could you tell us what operating system and Processing version you are using? If you’re using Python Mode, stick to Processing 3.5.4 for now.

---

<div class="post-metadata">

**Author:** ![TipTop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tiptop/32/16687_2.png) [@TipTop](https://discourse.processing.org/u/TipTop)\
**Post date:** [July 25, 2022, 1:20pm UTC](https://discourse.processing.org/t/processing-stop-button-doesnt-close-sketch-window/38084/3 "2022-07-25T13:20:49Z")

</div>

Hi @tabreturn. I am on macOS 10.15.7, using Processing 4. I’ll get 3.5.4 and give it a try. Thank you very much!
