Add retries when reverting snapshot