Exposing the maximum number of retries in graceful mode. Issue #228
Merge branch 'master' into issue#222