Implement the graceful restart