While there is no cure for Rampancy an A.I. who reaches the fourth stage can be considered fully "human" and no longer poses a threat. Cortana showed evidence of this moments before her death.