when the master server down, execute a script