Cache the initial arguments passed to cgminer and implement an attempted restart option from the settings menu.