Protect connection retries from application exceptions

Fix for an uncaught exception in the application callback that prevent the redis client from reconnecting