Document will not close

Working with thousands of objects, which happen to be rhinestones, the document will not close when the x box it clicked.

Along with this problem, the Object Properties dialog totally goes bonkers, opening some sub trees, and the scrolling action goes haywire.

Note: THOUSANDS of objects, as in rhinestone fills.

This machine has plenty or ram, plenty of cpu.