closes existing file, if at capacity opens a new file, if current file is full or uncreated stores the event