Destroy trace buffer upon termination