added restart if the process errors out