wait for interrupt handler; added comments
handle interrupt and make add closed flag to miner
increment waitgroup before goroutine starts
fix error when miner is already shutdown
don't discard error in GetBlockCount