# Onstop event?

**URL:** https://www.finalbuilder.com/forums/t/onstop-event/1958
**Category:** Discussion
**Created:** [March 8, 2012, 4:13am UTC](https://www.finalbuilder.com/forums/t/onstop-event/1958 "2012-03-08T04:13:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![itergo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/6f9a4e/32.png) [@itergo](https://www.finalbuilder.com/forums/u/itergo)
#### Post date: [March 8, 2012, 4:13am UTC](https://www.finalbuilder.com/forums/t/onstop-event/1958/1 "2012-03-08T04:13:05Z")

</div>

Hi,

We would like to implement an action list (e.g. OnStop) which will we fired in case of stopping the build. Is there&nbsp;an event where we can register? The aim is to clean up some things in that case.

---

<div class="post-metadata">

### Author: ![itergo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/6f9a4e/32.png) [@itergo](https://www.finalbuilder.com/forums/u/itergo)
#### Post date: [March 27, 2012, 2:58am UTC](https://www.finalbuilder.com/forums/t/onstop-event/1958/2 "2012-03-27T02:58:32Z")

</div>

No Hints?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 28, 2012, 8:51am UTC](https://www.finalbuilder.com/forums/t/onstop-event/1958/3 "2012-03-28T08:51:04Z")

</div>

Sorry there is no on stop event, if you stop the build then it will stop when the currently executing action is exits (some can be interrupted some can’t, depends what they are doing). If you are talking about when it finishes normally then simple put the main actions in an action list which you call from the main actionlist, and wrap that in a try/finally and do the cleanup in the finally block.

---

<div class="post-metadata">

### Author: ![itergo](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/i/6f9a4e/32.png) [@itergo](https://www.finalbuilder.com/forums/u/itergo)
#### Post date: [March 30, 2012, 3:44am UTC](https://www.finalbuilder.com/forums/t/onstop-event/1958/4 "2012-03-30T03:44:27Z")

</div>

Well, we like each developer would still have the option to stop a build at any time via FinalBuilder Server GUI. This makes it necessary, however, that we have to clean up some things. For example, to undo checkouts, so the next build will work again. That’s the idea.
