dns: refactor kill_existing() to always unlink pidfile