NPC destructor prevent memory leak