Set destructor = NULL in destroy func to prevent it being called twice