Cleanup dnsmgr on exit.