flush and close acc file when pause