Bug fix to ensure that the publish task completes cleanly
Merge pull request #13 from ITV/publish-bug2

Bug fix to ensure that the publish task completes cleanly