Make bfgminer restartable