flush audio buffer when exit