More robust restart command