gracefully fail on publish
allow connection retries
fix publish tests
Merge pull request #10 from nkeyes/graceful-publishing-failures

Graceful publishing failures