[Ticket: 1729] Closing of context object
Merge pull request #430 from datadryad/atmire-1729

[Ticket: 1729] Closing of context object