Added audio detach handling