Stop spawning threads unnecessarily in FileManager. …
The spawned threads remain for select_file and select_files, as those may need to wait indefinitely for the user's response.