Preventing recursive destructor call causing segfault (mac/linux).
Make destroy safer - ensure local_system is updated when it is destroyed.
Merge pull request #72 from pthedinger/master

Preventing recursive destructor call causing segfault (mac/linux).