Save generator state upon SIGINT and SIGTERM
Generator no longer reads stdin

Generator no longer spawns thread,
thread spawning moved to certain GeneratorTest