mesh extraction: Join the extraction thread before closing the window.