if there are elements left in GQ, delete them when force-complete

Backporting #5311 from master