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

local_system is deleted by calling destroy(), but this caused a segfault (stack overflow) as the destructor was called recursively.