Close the publication on task completion.