flush record file at interval