Destroy trace buffer upon termination

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Merge pull request #8 from stefanbeller/destroybuffer

Destroy trace buffer upon termination