fixed abort_on_exception in task thread