Critically disabling DraftSight when working with a large number of files

Good morning,
I'm testing DraftSight with scripts. When opening a large number of files (300-500 files), i.e. opening 1 file, saving and closing a file, opening a 2nd file, saving and closing a file, opening a 3rd file, saving and closing a file, etc. The program hangs and exits. How to solve the problem, are there any buffer cleaners?

In AutoCAD, I have no such problems, please help?