title: TYPO3 extbase how to end a script properly
body: <p>I have a scheduler task running every few minutes that triggers a CommandController. If I encounter a specific scenario I need to end the execution of this task.</p>
  
  <p>I do this with a simple <code>exit()</code>.
  But it looks like extbase does not like that, since the scheduler tasks is marked as running when ending the script like this and therefore the next execution of the task will never happen.</p>
  
  <p>Is there a proper way of ending a script in extbase so also the scheduler is noticed that the execution of the script is "finished"?</p>