restraintd: refactor aborted task flow in task_handler()

Changed the flow of aborted tasks/recipes in task_handler() so that it doesn't
circumvent the usual flow anymore.