More logging around task.on_complete.