set executed flag in shutdown with pending test