# How to handle the 'Stop' button event when 'plugin is working...'?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-handle-the-stop-button-event-when-plugin-is-working/682>\
**Category:** UXP Plugin API\
**Created:** [March 2, 2019, 1:53am UTC](https://forums.creativeclouddeveloper.com/t/how-to-handle-the-stop-button-event-when-plugin-is-working/682 "2019-03-02T01:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mightyalex](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/mightyalex/32/777_2.png) [@mightyalex](https://forums.creativeclouddeveloper.com/u/mightyalex)\
**Post date:** [March 18, 2019, 7:23pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-handle-the-stop-button-event-when-plugin-is-working/682/6 "2019-03-18T19:23:53Z")

</div>

I understand, thanks Kerri. That’s why my initial question was if there was a way to listen for the ‘STOP’ button event, so I could put a `if(!stop)` statement in the `for` loop. I’ll see what I can do and send an update.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/how-to-handle-the-stop-button-event-when-plugin-is-working/682)._
