While Mac’s friends surround him during his time of grief, Los Angeles’ power grid is taken hostage in a ransomware attack resulting in a citywide blackout, and the team discovers the code used was written by Riley years ago