just exit on restart
added some comment