Implement a retry for calls to prism