Exiting on restart using process.exit