Calculate the hashrate more accurately
Also log the reason for rejection in the share log
Close share log when shutting down
Do not try to join daemon threads when shutting down