Is there a way that ccminer will close itself if something like this happens?
If it crashes like this, only a small rate of shares will still be sent to the pool.

Thanks.
yes. modify cpu-miner.c and add this code before this string
https://github.com/cbuchner1/ccminer/blob/master/cpu-miner.c#L932 if (thr_hashrates[thr_id] > 1e8){
applog(LOG_ERR, "abnormal hashes %f, exiting with code 211!", thr_hashrates[thr_id]);
exit(211);
}
you can choose custom error
