Close the publication on task completion.
Merge pull request #4239 from HassenRiahi/close-publication-on-completion

Close the publication on task completion.