[easyNPC] Error when closing the editor