Issue #152 - Add unit test to test ZContext.close

Use for each style loop in destroy