Merge pull request #21 from rampage644/memory

Memory
Fix leaking json generator handle on shutdown