Add destroy at the end of main to free ringbuffers