destroy flush condition variable