Lightweight implementation for automatic mine resets.