Fix cgminer restart