Add retrying env resets