Added a retry callback, called before each retry.