restarting service if master is failed