Add ability to retry operation on exception.