[issue #27] Implement and fix __destruct, gc
Merge pull request #32 from dim-s/issue-27/__destruct

[issue #27] Implement and fix __destruct, gc