context closeAll() now makes map copy to keep from invalidating iters, should fix crash on shutdown, closes #111