SecuredScript should be tidy and put things back the way it found them.