terminate audio before core on exit