Exit gracefully on error
Merge pull request #4 from rondale-sc/exit-gracefully-on-error

Exit gracefully on error for publish()