reconnect logic attempt
resubscribe logic on error
Merge branch 'retry-logic' into 2.x
cleanup config
Merge pull request #276 from amit-git/2.x

re-subscribe logic