Make sure mining stops