fix do until to fail on max retries

This pull request makes the do until feature to fail the task when the maximum retries have been reached. The docs are also updated to reflect the change.