Add retry logic to PubSub

Fix #14
Improve error message