destroy headless as well