Exposing the maximum number of retries in graceful mode. Issue #228