add a fixed timeout

Add some tortuous logic to

- not kill the stagehand app until the generator finishes
- allow some time for the analytics ping to complete
- not let analytics run forever - when the bulk of the app has finished, the app should exit soon after (not hang on the command line just waiting for an analytics ping to complete)