finish the workflow