I helgen var ljuset på väg att slockna i Europa. En hel kontinent stod inför en kollaps i elnätet.