Made self-destruct optional

Additionally fixes an issue where the entire line would not copy to the
new file.