[BUG #7935] catch Ctrl-C in generate.py

- it was generate.py, not generator.py, that produced the stack traces
- this works for all jobs, source, watch, source-server, ...