Self-healing smart grids minimise outages