flush on quit