add sync/allsync functions to ringbuffer, sync ringbuffers before aborting