How to know if the miner is running?