While Spooner and Calvin attempt to gain access to VIKI's core, Sonny retrieves nanites from Calvin's laboratory. VIKI tries to convince Sonny that she is correct according to pure logic, but Sonny counters that her plan is "too heartless". Spooner, Calvin, and Sonny fight off an army of robots inside VIKI's core, and Spooner injects the nanites, destroying her. Immediately, all NS-5 robots revert to their default programming and are decommissioned and put into storage. Spooner finally gets Sonny to confess that he killed Lanning, at Lanning's direction. Spooner points out that Sonny, as a machine, could not legally have committed "murder". Sonny, now looking for a new purpose, goes to Lake Michigan. Standing atop a hill, all the decommissioned robots turn towards him, fulfilling the image in his dream.