GENERATOR SAFETY: How to use a generator properly after a po