Set connection for closing to be queued, not direct by default.

Refs #8229
Merge remote-tracking branch 'origin/feature/8229_last_curve_crash'