Proactive restoration of slow-failures in optical networks