title: Perform a task / execute script after a Bamboo build is manually stopped
body: <p>Say you have a build that executes a script somewhere and waits for it to finish. If the build is manually stopped, the script is <strong>not</strong>. But you want it to be killed automatically.</p>
  
  <p>Is there a simple way of running a specified job (which will send a termination signal to the running script, perform a clean-up etc.) to stop the build gracefully?</p>
  
  <p>No straightforward solution for this in Google.</p>