can you tell us more about what you mean by 'self destructing while not being plugged' ?
Contrast with Arduino, where I plug it into my laptop and upload some code, thereafter I can plug it in/out/'turn it all about' with power and it reliably does 'stuff'