what happened was:
- the task was running, and was in the process of applying the patch.
- the abort signal was received during the patch apply step.
- the agent received the abort signal, and stopped everything it was doing, but hung when making the final "finish" call to inform motu that it was stopping the task.
- eventually the cleanup process noticed that heartbeats stopped coming in (since the agent had cancelled them) and reset the task.
tl;dr - we need to make sure that the agent can gracefully handle the abort signal during any plugin step (this edge case likely affects other command besides git.apply_patch)