cleanup the restart script