Benchmark loading: Give document time to clean up after loading before closing
Fixes a crash when loading file with multiple charts