Merge files on exit in hlsdump