fixing quitting process on restart