Added proper pause and quit support into the generator to make sure it prevents senting more command during the pause or when quiting. Quiting will shutdown the generator. Since it is easy to restart, I am keeping it simple for now but this is easily removed.