prevent multiple instances
version fix
better stopped miner handling