set SUCCEEDED for all master in shutdown hook