restart instances on failure periodically