I don't know how to do this nor if it really impossible. I suggested a thing that could be useful.
re-set the condition of Arduino as it exited from factory.
that erases (fill with 00) the portion of Flash Ram usually occupied by the user code
or at least make the program delay for like 1 second