perf session: flush_sample_queue needs to handle errors from handlers