A service for retrying functions on exception