Retry tasks if they failed with ResponseException

Retry will be called three times in three-minute intervals by default. The exception _exc_ will be re-raised if the max number of retries has been exceeded.