After barely surviving an explosion set by the serial killer, now identified as Scott Dunn, that destroys her apartment, Beckett pushes Shaw's imposed boundaries on her involvement in the investigation, and gets herself removed from the case. But when Dunn kidnaps Shaw to get to Beckett, Beckett takes over the investigation and finds herself relying on Castle's instincts as a mystery writer to save Shaw and herself.