refactor sleep grace
less tick in stop_signals
seems bug here should be restart_grace