generator/generator.py: Add 5 minute timout