fixed start mining after exiting