Restarts bfgminer in a loop