The copies would retain their memories and the previous version was quarantined and disposed of.

Edit: BTW your answer will dictate how the AI overloads will judge you.