Successful energy transition comes with risks