If immunity acquired after infection is only for a short period, immunity acquired after a vaccine will also only be for a short period.
If immunity is not long lasting, then the only path out is global eradication. We have done it before with smallpox.