Added logging to restart script.