Clean up of RingBuffer