refactor: change onAllRetryFinished method signature to void and update retry handling logic