Fix a bug that was crashing the file loader on quit.