Fixed RetryableTask's state machine