'Write epliog and close file after every record is written.'

def finalize_export(self):

    if self.epilog:
        self.export_file_pointer.write(self.epilog)
        if (self.mode == 'text'):
            self.export_file_pointer.write('\n')
    self.export_file_pointer.close()
