Improve the RetryPolicy filter

- Fix the require. Without this adjustment the retry policy is unusable on most systems, since the path will be incorrect and the require will fail.
- Use another mechanism for retrying.
- Pass the error instead of result to retry block.

*Note*
I still have trouble getting this to work, so perhaps someone on the team can chip in and add commits to make this filter usable.