@dzairo search the Web for rebooting arduino from code. There are many ways each with its own (dis) advantages.