core: if state ID is NOT_CREATED_ID, destroy machine state