Use finish_task_new in the API.

There are still two ways to finish a task that need to be consolidated, but
for now just use this one in the API.